package com.qdlc.p2p.dal.dto;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.qdlc.p2p.common.constant.Global;

/**
 * 卡片规则实体
 *
 * @author Kaiju Zhao
 * @version V1.0.0
 * @date 2016-05-06
 */
@Entity
@Table(name = Global.DB_PREFIX + "additional_card_rule")
public class CardRule {

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;

    /**
     * 卡片规则名称
     */
    private String name;

    /**
     * 卡片类型 1:“酒”酒卡 2:“掌”酒卡 3:“柜”酒卡
     */
    private int type;

    /**
     * 状态 0:未启用 1:启用
     */
    private int status;

    /**
     * 卡片的有效期天数 0:永久
     */
    private int validDay;

    /**
     * 卡片总数，卡片发放数量控制，0:不限制总数
     */
    private int total;

    /**
     * 卡片已发放数量
     */
    private int issueNum;

    /**
     * 是否已删除 0:未删除 1:已删除
     */
    private int isDelete;

    /**
     * 卡片描述
     */
    private String description;

    /**
     * 添加时间
     */
    private Date addTime;

    /**
     * 添加IP
     */
    private String addIp;

    public CardRule() {
        super();
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getValidDay() {
        return validDay;
    }

    public void setValidDay(int validDay) {
        this.validDay = validDay;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getIssueNum() {
        return issueNum;
    }

    public void setIssueNum(int issueNum) {
        this.issueNum = issueNum;
    }

    public int getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(int isDelete) {
        this.isDelete = isDelete;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getAddIp() {
        return addIp;
    }

    public void setAddIp(String addIp) {
        this.addIp = addIp;
    }
    
}
